/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ajax;

import java.util.Date;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author Administrador
 */
@ManagedBean(name="objeto")
@RequestScoped
public class BeanYControlador {
    private String cadena;

    public String getCadena() {
        return cadena;
    }

    public void setCadena(String cadena) {
        this.cadena = cadena;
    }
    public Date getFecha(){
        return new Date();
    }
    
    public String ejecutar(){
        cadena = "Correcto";
        return "";
    }
}
